<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script type="module">
    // <!-- import和export 语法 -->
    // 需要使用php -s localhost:8888启动，然后访问
    import * as m1 from './module/m1.js';
    console.log(m1);
    console.log(m1.data);
    console.log(m1.getData());

    import * as m2 from './module/m2.js';
    console.log(m2);
    console.log(m2.name);
    console.log(m2.getAddress());

    import * as m3 from './module/m3.js';
    console.log(m3, m3.default.name, m3.default.change());
    m3.default.change()

</script>

</html>